  <%= error_messages_for 'song' %>

  <% form_for (@song)  do |form| %>

    <div>
      <%= form.label :title %><br />
      <%= form.text_field :title, :size => 40 %><br />
    </div>

    <div>
      <%= form.label :track %><br />
      <%= form.text_field :track, :size => 3 %><br />
    <div>

    <div>
      <%= form.label :length %><br />
      <%= form.text_field :length, :size => 4 %><br />
    </div>

    <div>
      <%= form.label :disc %><br />
      <%= form.text_field :disc, :size => 2 %><br />
    </div>

    <% if params[:edition_id] %>
      <%= form.hidden_field :edition_id, :value => params[:edition_id] %>
    <% end %>
    <% if params[:artist_id] %>
      <%= hidden_field_tag "[artist][artist_id]", params[:artist_id] %>
    <% end %>

    <%= form.submit "Create" %>
  <% end %>
